﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace LearningCompany.WebControls.Menu
{
    public partial class ElementMenu : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public string UrlPicto
        {
            get 
            {
                return ImgElement.ImageUrl;
            }
            
            set 
            {
                ImgElement.ImageUrl = value;
            }
        }

        public string Libelle
        {
            get
            {
                return LblElement.Text;
            }

            set
            {
                LblElement.Text = value;
                ImgElement.AlternateText = value;
            }
        }

        public string Url
        {
            get
            {
                return LnkElement.NavigateUrl;
            }

            set
            {
                LnkElement.NavigateUrl = value;
            }
        }

        public void Selectionner()
        {
            LblElement.CssClass = "ElementMenuSelectionne";
        }
    }
}